<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet name="./css/newcss.css"/>
        <title><ui:insert name="title">Facelets Template</ui:insert></title>
    </h:head>
    <h:body>
         <div id ="header"> <div><h:graphicImage library="images" name="skafferi.png" width="100" height="50" id="img1"/> </div>          
         </div>
        
        <div id="wrapmenu">
                    <div id="menu">
                        <ul>
                            <li id="menu"><a class= "menua" href="#">Schema</a>
                                <ul>
                                    <li><h:form><h:commandLink action="/admin/adminSchema" value ="Lägg schema"></h:commandLink></h:form></li>
                                </ul>

                            </li><!--end of list element-->
                            <li id="menu"><a href="#">Skafferi</a>
                                <ul>
                                    <li><h:form><h:commandLink action="/admin/stock/createstock" value ="Lägg till inventarier"></h:commandLink></h:form></li>
                                    <li><h:form><h:commandLink action="/admin/stock/liststock" value ="Visa inventarier"></h:commandLink></h:form></li>
                                </ul>

                            </li><!--end of list element-->

                            <li id="menu"><a href="#">Meny</a>
                                <ul>
                                    <li><h:form><h:commandLink action="/admin/dinner/createdinner" value ="Skapa middags rätt"></h:commandLink></h:form></li>
                                    <li><h:form><h:commandLink action="/admin/dinner/listdinner" value ="Visa middagsrätter"></h:commandLink></h:form></li>
                                    <hr/>
                                    <li><h:form><h:commandLink action="/admin/lunch/createlunch" value ="Skapa lunchrätt"></h:commandLink></h:form></li>
                                    <li><h:form><h:commandLink action="/admin/lunch/listlunch" value ="Visa lunchrätter"></h:commandLink></h:form></li>
                                    <li><h:form><h:commandLink action="/admin/lunch/lunchmenu" value ="Skapa lunchmeny"></h:commandLink></h:form></li>
                                    <hr/>
                                    <li><h:form><h:commandLink action="/admin/dinnermenu/viewmenu" value ="visa Middagsmeny"></h:commandLink></h:form></li>
                                     <li><h:form><h:commandLink action="/admin/dinnermenu/createmenu" value ="Redigera middags menyer"></h:commandLink></h:form></li>
                                    
                                   
                                </ul>

                            </li><!--end of list element-->
                            <li id="menu"><a href="#">Evenemang</a>
                                <ul>
                                    <li><a href="#">Lägg till evenemang</a></li>

                                </ul>  
                            </li><!--end of list element-->
                            <li id="menu"><a href="#">Bokningar</a>
                                <ul>
                                    <li><h:form><h:commandLink action="/admin/reservations" value ="Visa bokningar"></h:commandLink></h:form></li>
                                </ul>  
                            </li><!--end of list element-->

                            <li id="menu"><h:form>
                                    <h:commandLink action="#{logoutBean.logout}" value="Logga ut" />
                                </h:form>

                            </li><!--end of list element-->


                        </ul> <!--end of un-order list-->

                    </div> <!--end of main menu-->
                </div>
                <p class ="ptext">Inloggad som: <h:outputText value="#{request.remoteUser}"></h:outputText></p>
                <div id="content">
                    <ui:insert name="page">Content Here</ui:insert>
                </div>
    </h:body>

</html>
